package com.ruoyi.project.jiaqin.supplycollect.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.jiaqin.supply.domain.Supply;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 供应收藏对象 jiaqin_supply_collect
 *
 * @author admin
 * @date 2021-01-05
 */
public class JiaqinSupplyCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String memberId;

    /** 供应ID */
    @Excel(name = "供应ID")
    private String supplyId;

    private Supply supply;

    public Supply getSupply() {
        return supply;
    }

    public void setSupply(Supply supply) {
        this.supply = supply;
    }

    /** 收藏时间 */
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectAt;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setSupplyId(String supplyId)
    {
        this.supplyId = supplyId;
    }

    public String getSupplyId()
    {
        return supplyId;
    }
    public void setCollectAt(Date collectAt)
    {
        this.collectAt = collectAt;
    }

    public Date getCollectAt()
    {
        return collectAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("supplyId", getSupplyId())
            .append("collectAt", getCollectAt())
            .toString();
    }
}
